package com.openbravo.data.gui;

import com.openbravo.data.loader.QBFCompareEnum;
import javax.swing.AbstractListModel;
import javax.swing.ComboBoxModel;

public class ListQBFModelNumber extends AbstractListModel
  implements ComboBoxModel
{
  private Object[] m_items;
  private Object m_sel;

  private ListQBFModelNumber(Object[] paramArrayOfObject)
  {
    this.m_items = paramArrayOfObject;
    this.m_sel = this.m_items[0];
  }

  public static ListQBFModelNumber getMandatoryString()
  {
    return new ListQBFModelNumber(new Object[] { QBFCompareEnum.COMP_NONE, QBFCompareEnum.COMP_EQUALS, QBFCompareEnum.COMP_RE, QBFCompareEnum.COMP_DISTINCT, QBFCompareEnum.COMP_GREATER, QBFCompareEnum.COMP_LESS, QBFCompareEnum.COMP_GREATEROREQUALS, QBFCompareEnum.COMP_LESSOREQUALS });
  }

  public static ListQBFModelNumber getMandatoryNumber()
  {
    return new ListQBFModelNumber(new Object[] { QBFCompareEnum.COMP_NONE, QBFCompareEnum.COMP_EQUALS, QBFCompareEnum.COMP_DISTINCT, QBFCompareEnum.COMP_GREATER, QBFCompareEnum.COMP_LESS, QBFCompareEnum.COMP_GREATEROREQUALS, QBFCompareEnum.COMP_LESSOREQUALS });
  }

  public static ListQBFModelNumber getNonMandatoryString()
  {
    return new ListQBFModelNumber(new Object[] { QBFCompareEnum.COMP_NONE, QBFCompareEnum.COMP_EQUALS, QBFCompareEnum.COMP_RE, QBFCompareEnum.COMP_DISTINCT, QBFCompareEnum.COMP_GREATER, QBFCompareEnum.COMP_LESS, QBFCompareEnum.COMP_GREATEROREQUALS, QBFCompareEnum.COMP_LESSOREQUALS, QBFCompareEnum.COMP_ISNULL, QBFCompareEnum.COMP_ISNOTNULL });
  }

  public static ListQBFModelNumber getNonMandatoryNumber()
  {
    return new ListQBFModelNumber(new Object[] { QBFCompareEnum.COMP_NONE, QBFCompareEnum.COMP_EQUALS, QBFCompareEnum.COMP_DISTINCT, QBFCompareEnum.COMP_GREATER, QBFCompareEnum.COMP_LESS, QBFCompareEnum.COMP_GREATEROREQUALS, QBFCompareEnum.COMP_LESSOREQUALS, QBFCompareEnum.COMP_ISNULL, QBFCompareEnum.COMP_ISNOTNULL });
  }

  public Object getElementAt(int paramInt)
  {
    return this.m_items[paramInt];
  }

  public int getSize()
  {
    return this.m_items.length;
  }

  public Object getSelectedItem()
  {
    return this.m_sel;
  }

  public void setSelectedItem(Object paramObject)
  {
    this.m_sel = paramObject;
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.data.gui.ListQBFModelNumber
 * JD-Core Version:    0.6.0
 */